<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=utf-8" />
    <title>
      6.69.&nbsp;Texinfo-6.3
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body class="lfs" id="lfs-8.0">
    <div class="navheader">
      <h4>
        Linux From Scratch - Version 8.0
      </h4>
      <h3>
        第六章 安装基本系统软件
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="tar.html" title="Tar-1.29">上一页</a>
          <p>
            Tar-1.29
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="vim.html" title="Vim-8.0.069">下一页</a>
          <p>
            Vim-8.0.069
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "第六章 安装基本系统软件">返回</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0 ">首页</a>
        </li>
      </ul>
    </div>
    <div class="wrap" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ch-system-texinfo" name="ch-system-texinfo"></a>6.69.
        Texinfo-6.3
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <p>
          Texinfo 软件包包含阅读、撰写、转换信息页的程序。
        </p>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">构建约需时间：</strong>
              <span class="segbody">0.5 SBU</span>
            </div>
            <div class="seg">
              <strong class="segtitle">需要磁盘空间：</strong>
              <span class="segbody">108 MB</span>
            </div>
          </div>
        </div>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          6.69.1. 安装 Texinfo
        </h2>
        <p>
          准备编译 Texinfo：
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --disable-static</kbd>
</pre>
        <div class="variablelist">
          <p class="title">
            <strong>配置选项的含义：</strong>
          </p>
          <dl class="variablelist">
            <dt>
              <span class="term"><em class=
              "parameter"><code>--disable-static</code></em></span>
            </dt>
            <dd>
              <p>
                在此情况下，顶级配置脚本不能识别这个选项，但是 XSParagraph 的脚本能识别此选项，并屏蔽安装静态 <code class=
                "filename">XSParagraph.a</code> 到 <code class=
                "filename">/usr/lib/texinfo</code>目录。
              </p>
            </dd>
          </dl>
        </div>
        <p>
          编译软件包：
        </p>
        <pre class="userinput">
<kbd class="command">make</kbd>
</pre>
        <p>
          用以下命令测试结果：
        </p>
        <pre class="userinput">
<kbd class="command">make check</kbd>
</pre>
        <p>
          安装软件包： 
        </p>
        <pre class="userinput">
<kbd class="command">make install</kbd>
</pre>
        <p>
          可选地，安装从属于 TeX 安装的组件：
        </p>
        <pre class="userinput">
<kbd class="command">make TEXMF=/usr/share/texmf install-tex</kbd>
</pre>
        <div class="variablelist">
          <p class="title">
            <strong> make 指令参数的含义：</strong>
          </p>
          <dl class="variablelist">
            <dt>
              <span class="term"><em class=
              "parameter"><code>TEXMF=/usr/share/texmf</code></em></span>
            </dt>
            <dd>
              <p>
                <code class="envar">TEXMF</code> 生成文件变量保存了 TeX 程序要被安装到的目标目录。
              </p>
            </dd>
          </dl>
        </div>
        <p>
          Info 文档系统使用纯文本文档来记录其菜单条目。此文件在 <code class=
          "filename">/usr/share/info/dir</code> 。不幸的是，由于有的软件包的 Makefile 的问题，此目录有时不能与系统已安装的信息页同步。如果不需要重建 <code class="filename">/usr/share/info/dir</code> 文件，下面的可选命令将完成这个任务：
        </p>
        <pre class="userinput">
<kbd class="command">pushd /usr/share/info
rm -v dir
for f in *
  do install-info $f dir 2&gt;/dev/null
done
popd</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="contents-texinfo" name="contents-texinfo"></a>6.69.2.
          Texinfo 的内容
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">安装的程序：</strong>
              <span class="segbody">info, install-info, makeinfo (link to
              texi2any), pdftexi2dvi, pod2texi, texi2any, texi2dvi, texi2pdf,
              and texindex</span>
            </div>
            <div class="seg">
              <strong class="segtitle">安装的库：</strong>
              <span class="segbody">XSParagraph.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">安装目录：</strong>
              <span class="segbody">/usr/share/texinfo and
              /usr/lib/texinfo</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            简要描述
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="info" name="info"></a><span class=
                    "term"><span class=
                    "command"><strong>info</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    读取和 man 页面相似的信息页，但通常比仅解释所有可用的命令行选项更加深入 [ 例如，比较 <span class="command"><strong>man bison</strong></span>
                    和 <span class="command"><strong>info
                    bison</strong></span>。]
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="install-info" name="install-info"></a><span class=
                    "term"><span class=
                    "command"><strong>install-info</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    安装 info 页面；它会更新条目到
                    <span class="command"><strong>info</strong></span> 索引
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="makeinfo" name="makeinfo"></a><span class=
                    "term"><span class=
                    "command"><strong>makeinfo</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    将所给的 Texinfo 源文档转换为 info 页面，纯文本，或 HTML
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="pdftexi2dvi" name="pdftexi2dvi"></a><span class=
                    "term"><span class=
                    "command"><strong>pdftexi2dvi</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    将所给的 Texinfo 源文档转换为 PDF 文件
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="pod2texi" name="pod2texi"></a><span class=
                    "term"><span class=
                    "command"><strong>pod2texi</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    将 Pod 转换为 Texinfo 格式
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="texi2any" name="texi2any"></a><span class=
                    "term"><span class=
                    "command"><strong>texi2any</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    将所给的 Texinfo 源文档转换为其他格式
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="texi2dvi" name="texi2dvi"></a><span class=
                    "term"><span class=
                    "command"><strong>texi2dvi</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    将所给的 Texinfo 源文档转换为可打印的 div 格式
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="texi2pdf" name="texi2pdf"></a><span class=
                    "term"><span class=
                    "command"><strong>texi2pdf</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    将所给的 Texinfo 源文档转换为 PDF 文件
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="texindex" name="texindex"></a><span class=
                    "term"><span class=
                    "command"><strong>texindex</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    排序 Texinfo 索引文件
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="tar.html" title="Tar-1.29">上一页</a>
          <p>
            Tar-1.29
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="vim.html" title="Vim-8.0.069">下一页</a>
          <p>
            Vim-8.0.069
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "第六章 安装基本系统软件">返回</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0 ">首页</a>
        </li>
      </ul>
    </div>
  </body>
</html>
